<?php
namespace Little\Controller;
header("Content-type: text/html; charset=utf-8");

//**********************个人中心****************************

class CompanyController extends BaseController{
    //公司信息  style="width:402px;"
    public function index(){
        $res = sel("company");
        if($res){

            $img  = explode(",", $res['one']);
            $cout = count($img);
            for($i=0;$i<$cout;$i++){
                $imgs[] =  IMGS.$img[$i];
            }
            $res['one'] = $imgs;
            $res['two'] = IMGS.$res['two'];
            $res['three'] = IMGS.$res['three'];
            $res['intro'] = img_jie("/store_kangmei/",$res['intro']);
        }else{$res = 1;}

        echo json_encode($res);
    }
    //团队信息
    public function tuan(){
        $res = sels("tuan");
        if($res){
            foreach ($res as $k=>$v){
                $res[$k]['img'] = IMGS.$v['img'];
            }
        }else{$res = 1;}
        echo json_encode($res);
    }
}